package com.io.demo;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class Practice1 {

	public static void main(String[] args) {
		File file = new File("D:\\test.txt");
		try {
			FileInputStream fs = new FileInputStream(file);
			byte[] datas = new byte[1024];
			int data;
			while((data = fs.read()) != -1){
				System.out.println((char)data);
							
			}

			
			
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		

		

	}

}
